home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / basic20.arc / BASIC20.BUG next >
Encoding:
Text File  |  1983-10-29  |  2.5 KB  |  55 lines

  1.  
  2. BASIC only allows 3 files to be open at one time. However,
  3. if you want more than that open at once, when calling BASIC,
  4. one may use the /F:xx option where xx is a number between 1
  5. and 15. The new BASIC apparently has a problem with the
  6. /F:xx option. It doesn't recognize the command. For instance
  7. if you try the following command you should find that the
  8. program bombs when it hits the LPRINT statement:
  9.  
  10.  
  11. 10 OPEN "TEMP1.DAT" FOR OUTPUT AS #1
  12. 20 OPEN "TEMP2.DAT" FOR OUTPUT AS #2
  13. 30 OPEN "TEMP3.DAT" FOR OUTPUT AS #3
  14. 40 OPEN "TEMP4.DAT" FOR OUTPUT AS #4
  15. 50 OPEN "TEMP5.DAT" FOR OUTPUT AS #5
  16.  
  17. You will have to, of course, use /F:5 when calling BASIC to
  18. try this. Now insert a line at 60 that looks like this:
  19.  
  20. 60 LPRINT "TESTING FOR THE BASIC 2.00 BUG"
  21.  
  22. Now run the program. When it gets to the print line, the
  23. program will issue an error message that reads:
  24.  
  25. TOO MANY FILES OPEN
  26.  
  27. Any subsequent disk access will cause an I/O error!! The
  28. only way out is to completely reboot the system!! I tried
  29. the same program under BASIC 1.10 and it worked perfectly.
  30.  
  31. Gene Plantz (from Phil Niehoff, via Madison WISC BBS)
  32.  
  33. 09-06-1983 12:46:58                                            
  34. From:  LARRY GOTTLIEB                                                 
  35. Subj:  BASIC 2.00 OPEN PROBLEM                                        
  36.                                                                
  37. The problem you experienced would appear to be related to      
  38. the way in which DOS 2.0 handles file I/O.  The BASIC 2.00     
  39. manual notes on page 2-6a that the limit on files in BASIC     
  40. may not be increased past 4 unless your CONFIG.SYS file has    
  41. the line --                                                    
  42.                    FILES=n                                     
  43. where n = 4 PLUS the desired maximum.                          
  44.                                                                
  45. I tried your example without the "FILES" statement and         
  46. encountered the problem you described.  After entering--       
  47.                    FILES=9                                     
  48. (and rebooting) the problem disappeared.  This was done        
  49. on a PC XT running DOS 2.0.                                    
  50.                                                                
  51. Larry Gottlieb                                                 
  52. END OF TRANSFER - PRESS ENTER TO RETURN TO MENU
  53.          
  54. Larry Gottlieb                                                 
  55. END OF TRANSFER - PRESS ENTER TO RETURN